package com.heima.common.constants.es;

public class EsConstants {
    public static final String ARTICLE_INDEX_NAME = "app_info_article";
    public static final String ARTICLE_INDEX_MAPPING =
                    "{\n" +
                    "  \"mappings\":{\n" +
                    "    \"properties\":{\n" +
                    "      \"id\":{\n" +
                    "        \"type\":\"long\"\n" +
                    "      },\n" +
                    "      \"publishTime\":{\n" +
                    "        \"type\":\"date\"\n" +
                    "      },\n" +
                    "      \"layout\":{\n" +
                    "        \"type\":\"integer\"\n" +
                    "      },\n" +
                    "      \"images\":{\n" +
                    "        \"type\":\"keyword\",\n" +
                    "        \"index\": false\n" +
                    "      },\n" +
                    "      \"staticUrl\":{\n" +
                    "        \"type\":\"keyword\",\n" +
                    "        \"index\": false\n" +
                    "      },\n" +
                    "      \"authorId\": {\n" +
                    "      \t\"type\": \"long\"\n" +
                    "      },\n" +
                    "      \"authorName\": {\n" +
                    "      \t\"type\": \"text\"\n" +
                    "      },\n" +
                    "      \"title\":{\n" +
                    "        \"type\":\"text\",\n" +
                    "        \"analyzer\":\"ik_smart\"\n" +
                    "      }\n" +
                    "    }\n" +
                    "  }\n" +
                    "}";

}
